package com.ruoyi.finance.domain;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;


import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.finance.domain.vo.ProductInformationDTO;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 进项发票对象 w_invoice_info
 * 
 * @author ruoyi
 * @date 2025-03-06
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("w_template_info")
public class WInvoiceInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 序号 */
    private Long id;

    /** 发票种类 */
    @Excel(name = "发票种类",needMerge = true)
    private Long invoiceType;

    /** 开票日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开票日期", width = 30, dateFormat = "yyyy-MM-dd" ,needMerge = true)
    private Date invoiceDate;

    /** 发票号码 */
    @Excel(name = "发票号码" ,needMerge = true)
    private String invoiceNumber;

    /** 供应商名称 */
    @Excel(name = "供应商名称" ,needMerge = true)
    private String supplierName;

    /** 业务类型 */
    @Excel(name = "业务类型",needMerge = true)
    private Long businessType;

    /** 模版id */

    private Long templateInfoId;

    /** 合计金额 */
    @Excel(name = "合计金额" ,needMerge = true)
    private BigDecimal totalAmount;

    /** 税率 */
    @Excel(name = "税率" ,needMerge = true)
    private BigDecimal taxRate;

    /** 合计税额 */
    @Excel(name = "合计税额" ,needMerge = true)
    private BigDecimal totalTax;

    /** 价税合计 */
    @Excel(name = "价税合计" ,needMerge = true)
    private BigDecimal totalAmountTax;

    /** 认证状态 */
    @Excel(name = "认证状态" ,needMerge = true)
    private Long verificationStatus;

    /** 认证日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "认证日期", width = 30, dateFormat = "yyyy-MM-dd" ,needMerge = true)
    private Date verificationDate;

    /** 关联凭证 */
    @Excel(name = "关联凭证" ,needMerge = true)
    private Long associatedVoucher;

    /** 是否作废，0表示未作废，1表示已作废 */
    private Integer isVoided;

    /** 发票代码 */
    private String invoiceCode;

    /** 地址 */
    private String address;

    /** 开户行 */
    private String bankName;

    /** 纳税人识别编号 */
    private String taxpayerIdentificationNumber;

    /** 电话 */
    private String phoneNumber;

    /** 账号 */
    private String accountNumber;

    /** 车架号 */
    private String vinNumber;

    /** 机器编号 */
    private String machineNumber;

    /** 主管税务机关代码 */
    private String taxAuthorityCode;

    /** 销项进项状态id */
    private Long salesPurchaseStatusId;

    /** 创建人 */
    private String createUser;

    /** 修改人 */
    private String updateUser;

    /** 逻辑删除 */
    private Integer isDeleted;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;


    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    /** 备注 */
    private String remark;

    @TableField(exist = false)
    private String templateName;

    @TableField(exist = false)
//    @ExcelCollection(name = "发票凭证模块的详细信息信息")
    @Excel(name = "发票凭证模块的详细信息信息")
    private List<ProductInformationDTO>  productInformationDTOList;

}
